<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增项目进度')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
     <form class="form-horizontal m" id="form-projectProgress-add">
       <input name="dictType"  type="hidden" th:value="${dictType}" />
       <input name="listClass"  type="hidden" th:value="default" />
       <input name="isDefault"  type="hidden" th:value="N" />
       <input name="status"  type="hidden" th:value="0" />
       <div class="form-group">
         <label class="col-sm-3 control-label ">流程名称：</label>
         <div class="col-sm-8">
           <input class="form-control" type="text" name="dictLabel" id="dictLabel" required>
         </div>
       </div>
       <div class="form-group">
         <label class="col-sm-3 control-label ">流程标识：</label>
         <div class="col-sm-8">
           <input class="form-control" type="text" name="dictValue" id="dictValue" required>
           <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>此值由开发人员定义，添加后不可修改</span>
         </div>
       </div>
       <div class="form-group">
         <label class="col-sm-3 control-label">排序：</label>
         <div class="col-sm-8">
           <input class="form-control" type="text" name="dictSort" required>
         </div>
       </div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "project/projectProgress"
		$("#form-projectProgress-add").validate({
			rules:{
        dictSort:{
          digits:true
        }
			},
			focusCleanup: true
		});
		
		function submitHandler() {
      if ($.validate.form()) {
        $.operate.save(prefix + "/add", $('#form-projectProgress-add').serialize());
      }
    }
	</script>
</body>
</html>
